﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;
using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase.JsonConverter;

namespace ZL.CRM.CommonEntity.SyncMonitor
{
    public class YwDetailDealOpr
    {

        /// <summary>
        ///  操作记录流水号
        /// </summary>
        public string Oprsno { get; set; }

        /// <summary>
        ///  账户id
        /// </summary>
        public long Opraccid { get; set; }

        /// <summary>
        ///  操作记录：业务发生时间(自然时间)
        /// </summary>
        [JsonConverter(typeof(ChinaDateTimeConverter))]
        public DateTime Oprtime { get; set; }

    }
    public class YwDetailDealOprMapper : ClassMapper<YwDetailDealOpr>
    {
        public YwDetailDealOprMapper()
        {
            Table("#ywdealopr");
            Map(f => f.Oprsno).Column("Oprsno");
            Map(f => f.Opraccid).Column("Opraccid");
            Map(f => f.Oprtime).Column("Oprtime");

        }

    }
}
